package myapp.data 
{
	import com.bumpslide.data.ValueObject;

	/**
	 * @author David Knape
	 */
	public class FlickrImage extends ValueObject 
	{

		public var title:String;

		public var imageURL:String;

		public var thumbnailURL:String;

		
		static public function createFromRSS( item:XML ):FlickrImage 
		{			
			use namespace media;
			
			var img:FlickrImage = new FlickrImage();
			img.title = item.title.toString();
			img.imageURL = item.content.@url;
			img.thumbnailURL = item.thumbnail.@url;
			return img;
		}
	}
}

namespace media="http://search.yahoo.com/mrss/";
